﻿1857.1.1 = {
	# Generic Setup
	capital = 1091
	set_convoys = 200
	oob = "USA_1857"

	USA = {
		### System Settings
		set_country_flag = American_System_Eligible

		# Military / Equipment
		set_country_flag = mhc_ai_war_by_startup
		#army_experience = 20
		#navy_experience = 5
		set_political_power = 0

		if = {
			limit = { date < 1860.1.1 }
			# System
			add_to_variable = { prestige_score = 15 }

			# Political Variables
			set_cosmetic_tag = USA_31
			set_variable = { usa_state_count = 31 }
			set_variable = { var = ROOT.NA_B_chauvinist_populism_senate_seatsUSA value = 2 }
			set_variable = { var = ROOT.NA_B_traditional_conservatism_senate_seatsUSA value = 40 }
			set_variable = { var = ROOT.NA_B_centrism_senate_seatsUSA value = 19 }
			set_variable = { var = ROOT.NA_B_social_egalitarianism_senate_seatsUSA value = 1 }
			set_variable = { var = ROOT.NA_B_chauvinist_populism_house_seatsUSA value = 14 }
			set_variable = { var = ROOT.NA_B_radical_democracy_house_seatsUSA value = 100 }
			set_variable = { var = ROOT.NA_B_traditional_conservatism_house_seatsUSA value = 27 }
			set_variable = { var = ROOT.NA_B_centrism_house_seatsUSA value = 92 }
			set_variable = { var = ROOT.NA_B_radical_democracy_supreme_court_seatsUSA value = 7 }
			set_variable = { var = ROOT.NA_B_traditional_conservatism_supreme_court_seatsUSA value = 2 }

			# Working Class Exploitation
			add_to_variable = { var = USA.NA_B_idea_working_class_exploitation_score_varUSA value = 16 }
			add_to_variable = { var = USA.NA_B_idea_working_class_organization_score_varUSA value = 38 }
			country_event = { id = balkanized_usa.10 }

			# Native Raids
			add_to_variable = { var = USA.FNT_raid_likelihood_varSHO value = 12 }
			add_to_variable = { var = USA.FNT_raid_likelihood_varNEZ value = 12 }
			add_to_variable = { var = USA.FNT_raid_likelihood_varBFT value = 12 }
			add_to_variable = { var = USA.FNT_raid_likelihood_varSIX value = 12 }
			add_to_variable = { var = USA.FNT_raid_likelihood_varCHY value = 12 }
			add_to_variable = { var = USA.FNT_raid_likelihood_varAPA value = 12 }
			add_to_variable = { var = USA.FNT_raid_likelihood_varNAV value = 12 }
			add_to_variable = { var = USA.FNT_raid_likelihood_varOKL value = 12 }

			# Utah War
			country_event = { id = USA_utah_war.1 days = 49 }
	

			# Slavery Debate
			USA_Slavery_Debate_setup = yes
			activate_mission = USA_Slavery_Debate_Rising_Tensions
			activate_mission = USA_Election_of_1860_Mission
			country_event = { id = usa_slavery_debate.1 days = 14 random_days = 3 }
			country_event = { id = usa.326 days = 365 }

			# Spirits
			add_ideas = {
				USA_Spirit_Anti_Irish
				NA_B_Spirit_New_World_Democracies
				USA_Spirit_Memories_of_Confederation
				USA_Spirit_West_Point_Napoleonic_Thought1
				USA_UtahWar
			}
			# Focuses
			complete_national_focus = USA_buchanan_presidency
			complete_national_focus = USA_buchanan_address_debate
			complete_national_focus = USA_buchanan_deny_scott
			complete_national_focus = USA_missouri_railroad
			complete_national_focus = USA_buchanan_end_first_sioux_war
			complete_national_focus = USA_buchanan_scout_south_florida
		}
		### CORES ###
	}

	### Economy
    add_ideas = generic_unemployment_idea
    set_variable = { unemployment_value_modifier = 0.1 }
    set_variable = { current_unemployment = 0.04 }
    clamp_variable = {
        var = current_unemployment
        min = 0
        max = 1
    }
    update_unemployment_modifier = yes
    add_to_variable = { money = 15 }
	set_variable = { current_loans_sum = 11 }

	# Laws
	add_ideas = {
		#State of the Country
		#hos_is_leader
		#non_monarchical_system
		industrializing
		victorian_era
		doctrine_victorian_army_1

		#Matters of Constitution
		#presidential_republic
		#constitution_adopted
		free_elections
		#balanced_powers
		#federalist

		#Political Liberties
		open_schools
		free_press
		foa_free_assembly
		pp_open_politics
		tu_free_unions
		jury_court

		#Individual Liberties
		border_control
		usa_slavery_law
		universal_male_suffrage
		volunteer_only
		secular_state

		#Economic Policies
		free_trade
		taxation_level_2
		cl_legal
		
		
		civilian_economy

		#Internal Budget Laws
		social_spending_level_1
		law_spending_level_4
		road_spending_level_1
		navy_spending_level_4
		army_spending_level_4
		research_spending_level_1

		### National Spirits

		# Politics
		USA_executive_branch_idea
		USA_congressional_branch_idea
		USA_judicial_branch_idea

		#Military/War

		#Industry
	}

	## Political Leaders
	# Starting
	recruit_character = USA_character_james_buchanan
	recruit_character = USA_character_stephen_a_douglas
	recruit_character = USA_character_charles_sumner
	recruit_character = USA_character_henry_winter_davis
	recruit_character = USA_character_friedrich_sorge
	recruit_character = USA_character_joseph_weydemeyer
	recruit_character = USA_character_joshua_norton
	recruit_character = USA_character_john_c_fremont
	recruit_character = USA_character_josiah_warren
	##########
	recruit_character = USA_character_john_breckinridge
	USA_character_john_breckinridge = {
		set_character_flag = usa_cabinet_member_flag
		add_advisor_role = {
			advisor = {
				slot = political_advisor
				idea_token = USA_advisor_john_breckinridge
				traits = { hawk }
				ai_will_do = { factor = 0 }
			}
			activate = yes
		}
	}
	recruit_character = USA_character_abraham_lincoln

	## Advisors
	# Starting
	recruit_character = USA_character_roger_taney
	USA_character_roger_taney = {
		set_character_flag = usa_cabinet_member_flag
		add_advisor_role = {
			advisor = {
				slot = political_advisor
				idea_token = USA_advisor_roger_taney
				traits = { trait_chief_justice }
				ai_will_do = { factor = 0 }
			}
			activate = yes
		}
	}
	recruit_character = USA_character_lewis_cass
	USA_character_lewis_cass = {
		set_character_flag = usa_cabinet_member_flag
		add_advisor_role = {
			advisor = {
				slot = political_advisor
				idea_token = USA_advisor_lewis_cass
				traits = { trait_secretary_of_state }
				ai_will_do = { factor = 0 }
			}
			activate = yes
		}
	}
	recruit_character = USA_character_howell_cobb
	USA_character_howell_cobb = {
		set_character_flag = usa_cabinet_member_flag
		add_advisor_role = {
			advisor = {
				slot = political_advisor
				idea_token = USA_advisor_howell_cobb
				traits = { trait_secretary_of_the_treasury }
				ai_will_do = { factor = 0 }
			}
			activate = yes
		}
	}
	recruit_character = USA_character_john_floyd
	USA_character_john_floyd = {
		set_character_flag = usa_cabinet_member_flag
		add_advisor_role = {
			advisor = {
				slot = political_advisor
				idea_token = USA_advisor_john_floyd
				traits = { trait_secretary_of_war_corrupt }
				ai_will_do = { factor = 0 }
			}
			activate = yes
		}
	}
	recruit_character = USA_character_jacob_thompson
	USA_character_jacob_thompson = {
		set_character_flag = usa_cabinet_member_flag
		add_advisor_role = {
			advisor = {
				slot = political_advisor
				idea_token = USA_advisor_jacob_thompson
				traits = { trait_secretary_of_the_interior }
				ai_will_do = { factor = 0 }
			}
			activate = yes
		}
	}
	# Lincoln Cabinet
	recruit_character = USA_character_gideon_welles
	recruit_character = USA_character_salmon_p_chase
	recruit_character = USA_character_simon_cameron
	recruit_character = USA_character_edward_bates
	recruit_character = USA_character_william_seward
	recruit_character = USA_character_hannibal_hamlin
	# Possible Lincoln Cabinet Members
	recruit_character = USA_character_edwin_m_stanton
	recruit_character = USA_character_andrew_johnson
	# Breckinridge Cabinet
	recruit_character = USA_character_joseph_lane
	recruit_character = USA_character_robert_hunter
	recruit_character = USA_character_george_trenholm
	recruit_character = USA_character_stephen_mallory
	recruit_character = USA_character_judah_p_benjamin
	recruit_character = USA_character_jefferson_davis

	# Internal Politics
	USA = {
		set_politics = {
			ruling_party = traditional_conservatism
			#last_election = "1856.11.5"
			#election_frequency = 48
			#election_allowed = yes
			elections_allowed = no
		}
		set_party_name = {
			ideology = traditional_conservatism
			name = USA_democrat_party
			long_name = USA_democrat_party_long
		}
		set_party_name = {
			ideology = ideology_social_liberalism
			name = USA_republican_party
			long_name = USA_republican_party_long
		}
		set_party_name = {
			ideology = social_egalitarianism
			name = USA_radical_republican_party
			long_name = USA_radical_republican_party_long
		}
		set_party_name = {
			ideology = chauvinist_populism
			name = USA_democrat_party
			long_name = USA_democrat_party_long
		}
		set_party_name = {
			ideology = centrism
			name = USA_know_nothing_party
			long_name = USA_know_nothing_party_long
		}
		set_popularities = {
			anarchism = 0
			ideology_social_liberalism = 22.1
			ideology_radical_socialism = 0
			social_egalitarianism = 11
			centrism = 21.5
			traditional_conservatism = 31.4
			radical_democracy = 0
			chauvinist_populism = 14
			autocracy = 0
			fundamentalism = 0
		}
	}


	# External Politics
	USA = {
		add_opinion_modifier = { target = QNG modifier = eoanb_om_USA_QNG_barrier_forts }
		add_opinion_modifier = { target = ENG modifier = eoanb_om_USA_ENG_barrier_forts }
		add_opinion_modifier = { target = FRA modifier = eoanb_om_USA_FRA_barrier_forts }

		give_guarantee = MEX
		give_guarantee = CUB
		give_guarantee = HAI
		give_guarantee = DOM
		give_guarantee = GUA
		give_guarantee = HON
		give_guarantee = ELS
		give_guarantee = NIC
		give_guarantee = COS
		give_guarantee = PAN
		give_guarantee = VEN
		give_guarantee = COL
		give_guarantee = ECU
		give_guarantee = PRU
		give_guarantee = BRA
		give_guarantee = BOL
		give_guarantee = CHL
		give_guarantee = PAR
		give_guarantee = ARG
		give_guarantee = URG
		give_guarantee = BUE
		diplomatic_relation = {
			country = PIE
			relation = docking_rights
			active = yes
		}

		
			set_autonomy = {
				target = UTA
				autonomous_state = autonomy_organized_incorporated_territory
			}
			set_autonomy = {
				target = NMX
				autonomous_state = autonomy_organized_incorporated_territory
			}
			set_autonomy = {
				target = ORE
				autonomous_state = autonomy_organized_incorporated_territory
			}
			set_autonomy = {
				target = DAK
				autonomous_state = autonomy_organized_incorporated_territory
			}
			set_autonomy = {
				target = WSH
				autonomous_state = autonomy_organized_incorporated_territory
			}
			set_autonomy = {
				target = MIN
				autonomous_state = autonomy_organized_incorporated_territory
			}
			set_autonomy = {
				target = KNS
				autonomous_state = autonomy_organized_incorporated_territory
			}
			set_autonomy = {
				target = OKL
				autonomous_state = autonomy_organized_incorporated_territory
			}
			set_autonomy = {
				target = CIM
				autonomous_state = autonomy_unorganized_territory
			}
		#declare_war_on = {
		#	target = SEM
		#	type = annex_everything
		#}

	}

	#Technology
	set_research_slots = 3
	set_technology = {
		#Tribal Techs
		tribal_carrier_birds = 1
		tribal_electrical_theory = 1
		tribal_steel_tools = 1
		tribal_tatics = 1
		tribal_gunpowder = 1
		tribal_riding = 1
		tribal_steam_experiments = 1
		tribal_forging = 1
		tribal_artisan = 1
		tribal_chemistry = 1
		tribal_guilds_trade = 1
		tribal_crop_planting = 1
		tribal_irrigation = 1
		tribal_crop_rotation = 1
		tribal_salted_smoked_goods = 1
		tribal_leching = 1

		#Assorted Military Techs
		infantry_weapons = 1
		traditional_mixed_arms = 1
		tech_infantry_flintlock_pistol = 1
		tech_infantry_caplock_pistol = 1
		tech_infantry_napoleonic_uniform = 1
		tech_infantry_practical_rifling = 1
		 
		rifle_equipment1 = 1
		vic_army_cloth = 1
		basic_cavalry = 1
		horse_transport = 1
		horse_artillery = 1
		tech_support = 1
		gw_artillery = 1

		#Mechanical (Engineer)ing (Gaming)
		mass_transit_early = 1
		iron_railways = 1
		steel_railways = 1
		steam_engine = 1
		high_speed_steam_engine = 1
		early_thermodynamics_theories = 1
		steam_locomotive = 1
		steam_locomotive_2 = 1
		early_electric_trains = 1

		manufactories = 1
		factory_industry_1 = 1
		industrial_era_tools_1 = 1
		construction_1 = 1
		interchange_parts = 1
		machine_tools_1 = 1
		corliss_steam_engine = 1
		mechanical_production_1 = 1

		#Process Engineering
		inorganic_chemistry = 1
		chemical_vapor_deposition = 1

		hot_blast_furnaces = 1
		industrial_blast_furnace = 1
		cast_iron_industrialization = 1

		industrial_finery_forge = 1
		wrought_iron_industrialization = 1

		dry_puddling_process = 1

		regenerative_furnace = 1

		refining = 1

		#Biochemistry
		wohler_synthesis = 1
		polymer_chemistry = 1

		early_medicine = 1

		food_preserving_icebox = 1
		food_canning = 1

		early_artificial_fertilizer = 1
		high_phosphate_fertilizer = 1

		pre_industrial_farms = 1
		agricultural_engineering = 1

		mechanized_farming = 1

		#Electrics and Instruments
		early_alternators = 1
		woolrich_electrical_generator = 1
		early_dynamo_generator = 1

		voltas_battery = 1

		electrical_engineering = 1
		geissler_tube = 1
		electrical_telegraph = 1
		daguerreotype = 1
		ambrotype = 1

		pyroglycerine_synthesis = 1
		nitroglycerine = 1

		#Socio - Economics & Humanities
		tech_humanities_mercantilism = 1
		tech_humanities_capitalism = 1
		tech_humanities_industrial_society = 1
		tech_humanities_saint_simonianism = 1
		tech_humanities_social_stratification = 1
		tech_humanities_public_works = 1

		#Assorted Military Techs
		hand_revolvers = 1
		tech_infantry_infantry_swords = 1
		socket_bayonet = 1
		civil_army_cloth = 1
		basic_cavalry = 1
		horse_transport = 1
		mounted_infantry = 1
		mongolfiere = 1
		start_build_tech = 1
		ornithopter = 1
		screw_propeller = 1
		tech_infantry_special_infantry_corps = 1
		armor_tech_velocipede = 1
		#land_doctrine_victorian = 1
		tech_infantry_special_infantry_corps = 1
		tech_infantry_colonial_marines = 1

		#Vehicle Techs (Armor Tech File)
		basic_train = 1

		tech_naval_corvette = 1
		tech_naval_mtg_24_pounder_battery = 1
		tech_naval_mtg_sails = 1
		tech_naval_mtg_crows_nest = 1
		tech_naval_early_frigate = 1
		tech_naval_1850_frigate = 1
		tech_naval_early_gunboat = 1
		tech_naval_1850_gunboat = 1
		tech_naval_lineship = 1
		tech_naval_mtg_hardwood_capital_ship_hulls = 1
		tech_naval_mtg_explosive_shells = 1
		tech_naval_mtg_32_pounder_battery = 1
		tech_naval_mtg_paddle_wheels = 1
		tech_naval_mtg_repair_crews = 1
		tech_naval_capital_ship_naval_transportation = 1
		tech_naval_1857_lineship = 1
		tech_naval_mtg_1857_corvette_hull = 1
	}

	set_grand_doctrine = grand_doctrine_napoleonic_era
	set_sub_doctrine = napoleonic_light_cavalry_doctrine
	add_mastery = {
		amount = 200
		sub_doctrine = napoleonic_light_cavalry_doctrine
	}
	set_sub_doctrine = napoleonic_light_artillery_doctrine
	add_mastery = {
		amount = 200
		sub_doctrine = napoleonic_light_artillery_doctrine
	}
	set_sub_doctrine = napoleonic_innovative_doctrine 
	add_mastery = {
		amount = 200
		sub_doctrine = napoleonic_innovative_doctrine 
	}

	USA = {
		add_equipment_to_stockpile = {
			type = infantry_equipment_rifle_1
			amount = 9000
			producer = USA
		}
		add_equipment_to_stockpile = {
			type = uniform_equipment_2
			amount = 7500
			producer = USA
		}
		add_equipment_to_stockpile = {
			type = train_equipment_1
			amount = 15
			producer = USA
		}
	}

	# Trade
	ENG = {
		create_import = {
			resource = cotton
			amount = 8
			exporter = USA
		}
	}
	FRA = {
		create_import = {
			resource = cotton
			amount = 8
			exporter = USA
		}
	}
	PIE = {
		create_import = {
			resource = cotton
			amount = 8
			exporter = USA
		}
	}
	PRS = {
		create_import = {
			resource = cotton
			amount = 8
			exporter = USA
		}
	}
	RUS = {
		create_import = {
			resource = cotton
			amount = 8
			exporter = USA
		}
	}
	TUS = {
		create_import = {
			resource = cotton
			amount = 8
			exporter = USA
		}
	}
	#The USA's National Debt amounts to 54,910,777 Dollars (= 11.42m Pound Sterling) as of 1858; income per year 70,273,869 Dollars (= 14.62m Pound Sterling) = 0.78 GDP of debt

	## GENERALS
	# Starting
	recruit_character = USA_character_winfield_scott
	recruit_character = USA_character_john_e_wool
	recruit_character = USA_character_david_e_twiggs
	recruit_Character = USA_character_persifor_f_smith
	##########
	recruit_character = USA_character_george_b_mcclellan
	recruit_character = USA_character_ulysses_s_grant
	recruit_character = USA_character_william_t_sherman
	recruit_character = USA_character_george_meade
	recruit_character = USA_character_henry_halleck
	recruit_character = USA_character_irvin_mcdowell
	recruit_character = USA_character_ambrose_e_burnside
	recruit_character = USA_character_joseph_hooker
	recruit_character = USA_character_james_birdeye_mcpherson
	recruit_character = USA_character_john_a_logan
	recruit_character = USA_character_oliver_o_howard
	recruit_character = USA_character_benjamin_f_butler
	recruit_character = USA_character_nathaniel_p_banks
	recruit_character = USA_character_john_pope
	recruit_character = USA_character_william_s_rosecrans
	recruit_character = USA_character_philip_sheridan
	recruit_character = USA_character_george_h_thomas
	recruit_character = USA_character_edward_ord
	recruit_character = USA_character_john_g_parke

	recruit_character = USA_character_andrew_hull_foote
	recruit_character = USA_character_david_farragut
	recruit_character = USA_character_josiah_tattnall

	set_naval_oob = "USA_1857_naval_mtg"
	create_equipment_variant = {
		name = "Corvette Class" #something like the US' 24x 24lb armament
		type = ship_hull_corvette_0
		name_group = USA_BIRDS
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_0
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_sail_2
			fixed_ship_armor_slot = empty
			mid_1_custom_slot = ship_cannon_battery_0
			front_1_custom_slot = empty
		}
		
	}
	create_equipment_variant = {
		name = "Heavy Corvette Class" #this class shall represent later ships that had a heavier armament, but were still small ships, 24x 32lb armament (actually 18x 32lb + 4x 8in shell guns most of the time)
		type = ship_hull_corvette_1
		name_group = USA_BIRDS
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_1
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_sail_2
			fixed_ship_armor_slot = empty
			mid_1_custom_slot = ship_cannon_battery_1
			front_1_custom_slot = empty
		}
		
	}
	create_equipment_variant = {
		name = "Frigate Class" #this class shall represent the ships of the USN that might not be much bigger but their armaments sound bigger
		type = ship_hull_frigate_0
		name_group = USA_FRIGATES
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_0
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_sail_1
			fixed_ship_armor_slot = empty
			mid_1_custom_slot = ship_cannon_battery_0
			mid_2_custom_slot = empty
			front_1_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
	create_equipment_variant = {
		name = "Heavy Frigate Class" #Ships like USS Merrimack, pre-capture, USS Wabash, 1850s variant,
		type = ship_hull_frigate_1
		name_group = USA_FRIGATES
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_1
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_sail_1
			fixed_ship_armor_slot = empty
			mid_1_custom_slot = ship_cannon_battery_1
			mid_2_custom_slot = empty
			mid_3_custom_slot = empty
			front_1_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
	create_equipment_variant = {
		name = "Lineship Class" #Early US ships of the Line
		type = ship_hull_lineship_0
		name_group = USA_STATES
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_1
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_sail_0
			fixed_ship_armor_slot = empty
			mid_1_custom_slot = ship_cannon_battery_1
			mid_2_custom_slot = ship_cannon_battery_0
			mid_3_custom_slot = ship_cannon_battery_0
			front_1_custom_slot = ship_cannon_battery_1
			front_2_custom_slot = empty
			rear_1_custom_slot = ship_cannon_battery_0
		}
	}
	create_equipment_variant = {
		name = "Heavy Lineship Class" #USS Pennsylvania
		type = ship_hull_lineship_1
		name_group = USA_STATES
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_cannon_battery_1
			fixed_ship_fire_control_system_slot = fire_control_system_0
			fixed_ship_engine_slot = ship_engine_sail_0
			fixed_ship_armor_slot = empty
			mid_1_custom_slot = ship_cannon_battery_1
			mid_2_custom_slot = ship_cannon_battery_1
			mid_3_custom_slot = ship_cannon_battery_1
			front_1_custom_slot = ship_cannon_battery_1
			front_2_custom_slot = ship_cannon_battery_1
			rear_1_custom_slot = ship_cannon_battery_0
		}
	}
}

1870.5.19 = {
	# Generic Setup
	capital = 1091
	set_convoys = 200
	oob = "USA_1857"

	USA = {
		### System Settings
		set_country_flag = American_System_Eligible

		# Military / Equipment
		set_country_flag = mhc_ai_war_by_startup
		#army_experience = 20
		#navy_experience = 5
		set_political_power = 0

		if = {
			limit = { date < 1860.1.1 }
			# System
			add_to_variable = { prestige_score = 15 }

			# Political Variables
			set_cosmetic_tag = USA_31
			set_variable = { usa_state_count = 31 }
			set_variable = { var = ROOT.NA_B_chauvinist_populism_senate_seatsUSA value = 2 }
			set_variable = { var = ROOT.NA_B_traditional_conservatism_senate_seatsUSA value = 40 }
			set_variable = { var = ROOT.NA_B_centrism_senate_seatsUSA value = 19 }
			set_variable = { var = ROOT.NA_B_social_egalitarianism_senate_seatsUSA value = 1 }
			set_variable = { var = ROOT.NA_B_chauvinist_populism_house_seatsUSA value = 14 }
			set_variable = { var = ROOT.NA_B_radical_democracy_house_seatsUSA value = 100 }
			set_variable = { var = ROOT.NA_B_traditional_conservatism_house_seatsUSA value = 27 }
			set_variable = { var = ROOT.NA_B_centrism_house_seatsUSA value = 92 }
			set_variable = { var = ROOT.NA_B_radical_democracy_supreme_court_seatsUSA value = 7 }
			set_variable = { var = ROOT.NA_B_traditional_conservatism_supreme_court_seatsUSA value = 2 }

			# Working Class Exploitation
			add_to_variable = { var = USA.NA_B_idea_working_class_exploitation_score_varUSA value = 16 }
			add_to_variable = { var = USA.NA_B_idea_working_class_organization_score_varUSA value = 38 }
			country_event = { id = balkanized_usa.10 }

			# Native Raids
			add_to_variable = { var = USA.FNT_raid_likelihood_varSHO value = 12 }
			add_to_variable = { var = USA.FNT_raid_likelihood_varNEZ value = 12 }
			add_to_variable = { var = USA.FNT_raid_likelihood_varBFT value = 12 }
			add_to_variable = { var = USA.FNT_raid_likelihood_varSIX value = 12 }
			add_to_variable = { var = USA.FNT_raid_likelihood_varCHY value = 12 }
			add_to_variable = { var = USA.FNT_raid_likelihood_varAPA value = 12 }
			add_to_variable = { var = USA.FNT_raid_likelihood_varNAV value = 12 }
			add_to_variable = { var = USA.FNT_raid_likelihood_varOKL value = 12 }

			# Slavery Debate
			USA_Slavery_Debate_setup = yes
			activate_mission = USA_Slavery_Debate_Rising_Tensions
			activate_mission = USA_Election_of_1860_Mission

			# Spirits
			add_ideas = {
				USA_Spirit_Anti_Irish
				NA_B_Spirit_New_World_Democracies
				USA_Spirit_Memories_of_Confederation
				USA_Spirit_West_Point_Napoleonic_Thought1
				USA_UtahWar
			}
			# Focuses
			complete_national_focus = USA_buchanan_presidency
			complete_national_focus = USA_buchanan_address_debate
			complete_national_focus = USA_buchanan_deny_scott
			complete_national_focus = USA_missouri_railroad
			complete_national_focus = USA_buchanan_end_first_sioux_war
			complete_national_focus = USA_buchanan_scout_south_florida
		}
		### CORES ###
	}
	# Laws
	add_ideas = {
		#POLITICS
		#hos_is_leader
		victorian_era
		doctrine_victorian_army_1
		industrializing
		#non_monarchical_system
		#presidential_republic
		#balanced_powers
		#federalist

		#Economic
		civilian_economy
		export_focus
		army_spending_level_2
		taxation_level_1
		cl_legal
		

		#Population
		#stagnation_growth
		border_control
		volunteer_only
		usa_slavery_law
		universal_male_suffrage

		#constitution_adopted
		free_elections

		#Culture
		open_schools
		secular_state
		#religion_protestant

		### National Spirits

		# Politics
		USA_executive_branch_idea
		USA_congressional_branch_idea
		USA_judicial_branch_idea

		#Military/War

		#Industry
	}

	# Internal Politics
	USA = {
		set_politics = {
			# ruling_party = traditional_conservatism
			ruling_party = social_egalitarianism
			#last_election = "1869.3.4"
			#election_frequency = 48
			#election_allowed = yes
			elections_allowed = no
		}
		set_party_name = {
			ideology = radical_democracy
			# long_name = USA_know_nothing_party
			# name = USA_know_nothing_party
			name = USA_southern_democrat_party
			long_name = USA_southern_democrat_party_long
		}
		set_party_name = {
			ideology = traditional_conservatism
			name = USA_northern_democrat_party
			long_name = USA_northern_democrat_party_long
		}
		set_party_name = {
			ideology = centrism
			name = USA_republican_party
			long_name = USA_republican_party_long
		}
		set_party_name = {
			ideology = social_egalitarianism
			name = USA_radical_republican_party
			long_name = USA_radical_republican_party_long
		}
		set_party_name = {
			ideology = chauvinist_populism
			long_name = USA_know_nothing_party
			name = USA_know_nothing_party
			# long_name = USA_democratic_party_radical_long
			# name = USA_democratic_party_radical
		}
		set_party_name = {
			ideology = anarchism
			name = USA_anti_federal_party
			long_name = USA_anti_federal_party_long
		}
		set_popularities = {
			anarchism = 0
			ideology_social_liberalism = 0
			ideology_radical_socialism = 0
			social_egalitarianism = 0
			centrism = 20
			traditional_conservatism = 20
			radical_democracy = 10
			chauvinist_populism = 10
			autocracy = 0
			fundamentalism = 0
			# anarchism = 0
			# ideology_social_liberalism = 0
			# ideology_radical_socialism = 0
			social_egalitarianism = 40
			# centrism = 30
			# traditional_conservatism = 0
			# radical_democracy = 0
			# chauvinist_populism = 0
			# autocracy = 0
			# fundamentalism = 0
		}
	}

	promote_character = USA_character_ulysses_s_grant
	USA_character_ulysses_s_grant = {
		add_country_leader_role = {
			promote_leader = yes
			country_leader = {
				ideology = liberal_social
				expire = "1885.7.23.1"
				traits = {
					war_veteran
					eoanb_trait_military_leader
				}
			}
		}
	}

	# External Politics
	USA = {
		add_opinion_modifier = { target = QNG modifier = eoanb_om_USA_QNG_barrier_forts }
		add_opinion_modifier = { target = ENG modifier = eoanb_om_USA_ENG_barrier_forts }
		add_opinion_modifier = { target = FRA modifier = eoanb_om_USA_FRA_barrier_forts }

		give_guarantee = MEX
		give_guarantee = CUB
		give_guarantee = HAI
		give_guarantee = DOM
		give_guarantee = GUA
		give_guarantee = HON
		give_guarantee = ELS
		give_guarantee = NIC
		give_guarantee = COS
		give_guarantee = PAN
		give_guarantee = VEN
		give_guarantee = COL
		give_guarantee = ECU
		give_guarantee = PRU
		give_guarantee = BRA
		give_guarantee = BOL
		give_guarantee = CHL
		give_guarantee = PAR
		give_guarantee = ARG
		give_guarantee = URG
		give_guarantee = BUE
		diplomatic_relation = {
			country = PIE
			relation = docking_rights
			active = yes
		}

			set_autonomy = {
				target = UTA
				autonomous_state = autonomy_organized_incorporated_territory
			}
			set_autonomy = {
				target = NMX
				autonomous_state = autonomy_organized_incorporated_territory
			}
			set_autonomy = {
				target = ASI
				autonomous_state = autonomy_organized_incorporated_territory
			}
			set_autonomy = {
				target = SHO
				autonomous_state = autonomy_organized_incorporated_territory
			}
			set_autonomy = {
				target = WSH
				autonomous_state = autonomy_organized_incorporated_territory
			}
			set_autonomy = {
				target = MIN
				autonomous_state = autonomy_organized_incorporated_territory
			}
			set_autonomy = {
				target = TAF
				autonomous_state = autonomy_organized_incorporated_territory
			}
			set_autonomy = {
				target = OKL
				autonomous_state = autonomy_organized_incorporated_territory
			}
			set_autonomy = {
				target = BFT
				autonomous_state = autonomy_organized_incorporated_territory
			}
			set_autonomy = {
				target = APA
				autonomous_state = autonomy_organized_incorporated_territory
			}
			set_autonomy = {
				target = ALK
				autonomous_state = autonomy_organized_incorporated_territory
			}
	}

	#Technology
	set_research_slots = 4
	set_technology = {
		###Tribal
		tribal_carrier_birds = 1
		tribal_electrical_theory = 1
		tribal_steel_tools = 1
		tribal_tatics = 1
		tribal_gunpowder = 1
		tribal_riding = 1
		tribal_steam_experiments = 1
		tribal_forging = 1
		tribal_artisan = 1
		tribal_chemistry = 1
		tribal_guilds_trade = 1
		tribal_crop_planting = 1
		tribal_irrigation = 1
		tribal_crop_rotation = 1
		tribal_salted_smoked_goods = 1
		tribal_leching = 1
		start_build_tech = 1
		
		###Army
		#Weapons & Equipment
		traditional_mixed_arms = 1 #Pike and Shot
		infantry_weapons = 1 #Smoothbore
		 
		rifle_equipment1 = 1 #Minie
		rifle_equipment2 = 1 #Enfield
		tech_infantry_breech_loading = 1
		rifle_equipment3 = 1 #Snider-Enfield
		tech_infantry_flintlock_pistol = 1 #Flintlock Pistols
		tech_infantry_caplock_pistol = 1 #Caplock Pistols
		hand_revolvers = 1 #Hand Revolvers
		improved_handguns = 1 #Better Desings
		tech_infantry_practical_rifling = 1 #Practical Rifling
		improved_matchlock = 1 #Improved Percussion Cap
		tech_infantry_infantry_swords = 1 #Infantry Swords
		socket_bayonet = 1 #Socket Bayonet
		yataghan_bayonet = 1
		sawback_bayonet = 1
		#Uniforms
		tech_infantry_napoleonic_uniform = 1 #Napoleonic Uniform
		vic_army_cloth = 1 #Victorian Uniform
		civil_army_cloth = 1 #1850 Uniform
		sixfour_army_cloth = 1 #1864 Uniform
		#Cavalry
		basic_cavalry = 1 #Horse and Tack
		horse_transport = 1 #Transport Horses
		horse_artillery = 1 #Horse Limber
		improved_cavalry = 1
		specialised_cavalry = 1
		cavalry_recon = 1
		cav_supply = 1
		mounted_infantry = 1 #Mounted Infantry
		dragoon_equipment = 1
		#Special Forces
		tech_infantry_british_redcoats = 1
		tech_infantry_special_infantry_corps = 1 #Special Infantry Corps
		tech_infantry_colonial_marines = 1 #Naval Infantry
		tech_infantry_improved_landing_gear = 1
		tech_infantry_navy_revolver = 1 #Navy Revolvers
		tech_infantry_standardised_navy_revolver = 1
		tech_infantry_terrain_adaptability = 1
		
		###Army Support
		tech_support = 1 #Victorian Support Equipment
		tech_engineers = 1
		tech_recon = 1
		tech_wired_signal_company = 1
		
		###Military Vehicles
		basic_train = 1 #Simple Steam Train
		train_1855 = 1 #Early Steam Train
		train_1865 = 1 #Advanced Steam Train
		armor_train_experiment = 1
		armor_tech_velocipede = 1 #Velocipede
		armor_tech_steam_car_experiment = 1
		
		###Artillery
		gw_artillery = 1 #Bore Gun
		early_howitzer = 1 #Howitzer
		rifled_howitzer = 1
		heavier_design = 1
		rml_field_gun = 1 #RML Field Gun
		rbl_field_gun = 1
		studded_shells = 1
		early_rockets = 1
		spin_stabilised_rockets = 1
		staged_rockets = 1
		improved_smoothbore = 1 # Smoothbore
		siege_gun = 1
		
		###Naval
		#Gunboats and Monitors
		tech_naval_early_gunboat = 1 #Early Gunboat
		tech_naval_1850_gunboat = 1
		tech_naval_mtg_1860_gunboat = 1
		tech_naval_mtg_gunboat_engineering_1 = 1
		tech_naval_mtg_1868_gunboat = 1
		tech_naval_mtg_prototype_monitor = 1 #Prototype Monitor
		#Corvettes and Destroyers
		tech_naval_corvette = 1 #Early Corvette
		tech_naval_mtg_1857_corvette_hull = 1 #1857 Corvette
		tech_naval_mtg_1860_corvette_hull = 1
		tech_naval_ironclad_frigate_corvette_hull = 1 #1868 Ironclad Corvette
		#Mainline Ships
		tech_naval_early_frigate = 1 #Early Frigate
		tech_naval_1850_frigate = 1 #1850 Frigate
		#Heavy Ships
		tech_naval_lineship = 1 #Early Lineship
		tech_naval_1857_lineship = 1
		tech_naval_mtg_hardwood_capital_ship_hulls = 1 #Hardwood Capital Ship Hulls
		tech_naval_prototype_ironclad = 1 #Early Ironclad
		
		#Armament
		tech_naval_mtg_24_pounder_battery = 1 #24-Pounder Battery
		tech_naval_mtg_32_pounder_battery = 1 #32-Pounder Battery
		tech_naval_mtg_rml_battery = 1
		tech_naval_mtg_rbl_battery = 1
		tech_naval_mtg_early_turrets = 1 #Early Turrets
		tech_naval_mtg_modern_ironclad_rams = 1
		tech_naval_mtg_explosive_shells = 1 #Explosive Shells
		tech_naval_mtg_breach_loaded_shells = 1
		#Mines and Torpedoes
		tech_naval_mtg_simple_floating_contact_mine = 1
		tech_naval_mtg_floating_contact_mine = 1
		#Propulsion
		tech_naval_mtg_sails = 1 #Sails
		tech_naval_mtg_paddle_wheels = 1 #Paddle Wheels
		tech_naval_mtg_steam_driven_single_screw_propeller = 1 #Steam Driven Single-Screw Propeller
		#Fire Control
		tech_naval_mtg_crows_nest = 1 #Crows Nest
		tech_naval_mtg_artillery_spotting_techniques = 1
		#Repair Crews
		tech_naval_mtg_repair_crews = 1 #Repair Crews
		#Transport Ships
		tech_naval_capital_ship_naval_transportation = 1 #Capital Ship Naval Transportation
		tech_naval_mtg_merchant_ship_requisitioning = 1 #Merchant Requisitioning

		###Flight Technology
		early_balloon = 1 #Early Recon Balloon

		###Mechanical Engineering
		#Railroad
		mass_transit_early = 1	#Early Mass Transit
		tech_humanities_metropolitan = 1 #Metro
		tech_humanities_roadworks = 1 #Roadworks
		tech_humanities_asphalt_roads = 1
		iron_railways = 1 #Wrought Iron Railways
		steel_railways = 1 #Steel Railways
		standardized_gauge = 1
		#Locomotives
		steam_locomotive = 1 #Steam Locomotive I
		early_electric_trains = 1
		steam_locomotive_2 = 1 #Steam Locomotive II
		traction_engine = 1
		steam_locomotive_3 = 1 #Steam Locomotive III
		#Engines
		steam_engine = 1 #Atmospheric Steam Engine
		high_speed_steam_engine = 1 #High-Pressure Steam Engine
		porter_allen_engine = 1
		early_thermodynamics_theories = 1
		#Industrial Production
		manufactories = 1 #Manufactories
		factory_industry_1 = 1 #Factory Industry I
		industrial_era_tools_1 = 1
		construction_1 = 1 #Hydraulic Cranes
		#Machine Tools
		mechanical_production_1 = 1
		interchange_parts = 1
		corliss_steam_engine = 1
		machine_tools_1 = 1
		
		###Process Engineering
		#Chemical Process
		inorganic_chemistry = 1 #Inorganic Chemistry
		hot_blast_furnaces = 1 #Hot Blast Furnace
		industrial_blast_furnace = 1 #Industrial Blast Furnace
		industrial_finery_forge = 1 #Industrial Finery Forges
		chemical_vapor_deposition = 1
		cast_iron_industrialization = 1
		wrought_iron_industrialization = 1
		regenerative_furnace = 1
		siemens_martin_process = 1
		dry_puddling_process = 1
		bessemer_process = 1
		industrial_ironworks_1 = 1
		#Oil Refining
		refining = 1 #Refining
		early_oil_refining = 1
		mechanized_mining = 1 #Drilling Rig
		oil_refinery_1 = 1
		
		###Biochemistry
		#Chemical Synthesis
		wohler_synthesis = 1 #Wohler Synthesis
		organic_chemistry = 1
		chemical_structure_model = 1
		periodic_table = 1
		polymer_chemistry = 1 #Polymer Chemistry
		celluloid = 1
		#Food Preservation
		early_medicine = 1 #Early Medicine
		hygiene = 1
		antiseptics = 1
		principles_of_heredity = 1
		food_preserving_icebox = 1 #Icebox Preservation
		food_canning = 1 #Food Canning
		pasteurization = 1
		vapor_compression_refrigerator = 1
		#Agriculture
		early_artificial_fertilizer = 1 #Early Artificial Fertilizer
		pre_industrial_farms = 1 #Pre-Industrial Farms
		cottage_industry_1 = 1
		agricultural_engineering = 1
		high_phosphate_fertilizer = 1
		copper_salts_pesticides = 1
		fungicides = 1
		mechanized_farming = 1
		threshing_machine = 1 #Threshing Machine
		manufactured_seed_drill = 1
		
		###Electronics and Instruments
		#Alternating Current
		early_alternators = 1 #Early Alternators
		#Direct Current Battery
		woolrich_electrical_generator = 1 #Woolrich Electrical Generator
		voltas_battery = 1 #Volta's Battery
		lead_acid_battery = 1
		early_dynamo_generator = 1
		theory_of_electromagnetism = 1
		jedliks_dynamo = 1
		dynamo_electric_machine = 1
		gramme_dynamo = 1
		hydroelectric_plant = 1
		#Telegraph
		electrical_engineering = 1 #Electrical Engineering
		early_incandescent_lightbulb = 1
		electrical_telegraph = 1
		#Lightbulb
		geissler_tube = 1 #Geissler Tube
		#Photography
		daguerreotype = 1 #Daguerrotype
		ambrotype = 1
		tintype = 1
		collodion_process = 1
		photographic_glass_plate = 1
		dry_plate = 1
		#Explosives
		pyroglycerine_synthesis = 1 #Pyroglycerine Synthesis
		nitroglycerine = 1
		dynamite = 1
		
		###Socio-Economics & Humanities
		tech_humanities_mercantilism = 1 #Mercantilism
		tech_humanities_saint_simonianism = 1
		tech_humanities_neo_kantianism = 1
		tech_humanities_impressionism = 1
		tech_humanities_capitalism = 1 #Capitalism
		tech_humanities_social_stratification = 1 #Social Stratification
		shift_work = 1
		tech_humanities_workers_rights = 1
		tech_humanities_trade_unions = 1
		tech_humanities_socialism = 1
		tech_humanities_industrial_society = 1 #Industrial Society
		tech_humanities_public_works = 1 #Public Works
		tech_humanities_sewage_system = 1
		early_hospitals = 1
		
		###Aviation
		mongolfiere = 1 #Mongolfiere
		giffard_airship = 1
		balloon_designs = 1
		navigable_balloons = 1
		ornithopter = 1 #Ornithopter
		aerial_steam_carriage_design = 1
		early_aileron_control_system = 1
		planophore = 1
		screw_propeller = 1 #Screw Propeller
		early_aerodynamics = 1
		
		###Special Projects
		
		###Land Doctrines
		#land_doctrine_victorian = 1 #Victorian Army

		###Sea Doctrines

		###Air Doctrines

		tech_naval_corvette = 1
			tech_naval_mtg_24_pounder_battery = 1
			tech_naval_mtg_sails = 1
			tech_naval_mtg_crows_nest = 1
			tech_naval_early_frigate = 1
			tech_naval_1850_frigate = 1
			tech_naval_early_gunboat = 1
			tech_naval_1850_gunboat = 1
			tech_naval_lineship = 1
			tech_naval_mtg_hardwood_capital_ship_hulls = 1
			tech_naval_mtg_explosive_shells = 1
			tech_naval_mtg_32_pounder_battery = 1
			tech_naval_mtg_paddle_wheels = 1
			tech_naval_mtg_repair_crews = 1
			tech_naval_capital_ship_naval_transportation = 1
	}

	USA = {
		add_equipment_to_stockpile = {
			type = infantry_equipment_rifle_1
			amount = 9000
			producer = USA
		}
		add_equipment_to_stockpile = {
			type = uniform_equipment_2
			amount = 7500
			producer = USA
		}
		add_equipment_to_stockpile = {
			type = train_equipment_1
			amount = 15
			producer = USA
		}
	}

	# Trade
	BAV = {
		create_import = {
			resource = cotton
			amount = 8
			exporter = USA
		}
	}
	ENG = {
		create_import = {
			resource = cotton
			amount = 16
			exporter = USA
		}
	}
	FRA = {
		create_import = {
			resource = cotton
			amount = 8
			exporter = USA
		}
	}
	PIE = {
		create_import = {
			resource = cotton
			amount = 8
			exporter = USA
		}
	}
	PRS = {
		create_import = {
			resource = cotton
			amount = 8
			exporter = USA
		}
	}
	RUS = {
		create_import = {
			resource = cotton
			amount = 8
			exporter = USA
		}
	}
	TUS = {
		create_import = {
			resource = cotton
			amount = 8
			exporter = USA
		}
	}

}
